﻿/******************************************************************************
 *  Author：       Commscope ITDC Suzhou Web Team 
 *  CreateDate：   21/02/2012 2:30:12 PM
 *
 *
 ******************************************************************************/
using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebForm.Web.AutoValidate
{
    public partial class AutoValidateTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BtnClick(object sender, EventArgs e)
        {
            if(!formValidate1.Validate())
            {
                Response.Write(formValidate1.ErrorInfo.ControlId+" "+formValidate1.ErrorInfo.ErrorDesc);
            }
        }
    }
}